
import { request } from '../../utils/request'
import { getLiveId } from '../../utils/storage'

// 获取奖池金额
export function getPoolMoney() {
    return request('jianLai/luckyDbList6', 'GET', {
        splid: getLiveId(),
        cancelLoading: true,
    });
}
// 获取奖项列表
// export function getPrizeList() {
//     return request('jianLai/startData6', 'GET', {});
// }
// 获取扭一扭相关信息
export function getNynInfo() {
    return request('jianLai/getLuckyId6', 'GET', {
        splid: getLiveId(),
        playInfo: 'hdGame88',
    });
}
// 获取扭一扭排行榜列表
export function getNynRank() {
    return request('jianLai/luckyDbRank6', 'GET', {
        splid: getLiveId(),
    });
}
// 扭一扭充值
export function nynRecharge(paramObj) {
    return request('hmWxmoney/chongzhiNyn', 'POST', {
        splid: getLiveId(),
        giftId: 'one',
        USER_ID: paramObj.userId,
        openid: paramObj.openId,
    });
}
// 扭一扭开始游戏
export function startNyn(paramObj) {
    return request('jianLai/niuyiniu6', 'POST', {
        splid: getLiveId(),
        playInfo: 'hdGame88',
        id: paramObj.turnId,
    });
}
// 扭一扭发送中奖信息
export function sendPrizeInfo(paramObj) {
    return request('jianLai/luoXuanWan6', 'POST', {
        type: '2',
        gold: paramObj.gold,
        balance: paramObj.remainCoin,
        splid: getLiveId(),
        id: paramObj.turnId,
    });
}
// 发送广播
export function sendBroadCast(paramObj) {
    return request('sendMsgController/duxin6', 'POST', {
        splid: getLiveId(),
        ykq_info: paramObj.c
    });
}